{"project":"ui_toast","branch":"main","commit":"3ab4681b7a2346c41a979157ba567e31d409c294","component":{"name":"HomePage","nodes":{"root":{"tag":"div","type":"element","children":["0J-IvCOOerxOsKcJnhVGm"],"classes":{"fpSSHL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-MSW7Gdo63lSCusoL0PG-":{"tag":"p","type":"element","children":["iM7fDBTYXpHhJ9V8s2xds"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"0ETXpVVtXI5YcDO0keStV":{"type":"text","value":{"type":"value","value":"Step 2: Subscribe to the context in any subcomponent, at any depth (in this example: the \"my-component\")"}},"0J-IvCOOerxOsKcJnhVGm":{"tag":"main","type":"element","children":["qzYKg4prLrIBYwSvkrjuM","-MSW7Gdo63lSCusoL0PG-"],"classes":{"drWRwT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1vehdn7e2hLgacK2n1pt_":{"tag":"iframe","type":"element","attrs":{"src":{"type":"value","value":"https://www.youtube.com/embed/uhKIVMxJSmc?si=AnPY-IJkFu86WWY1"},"allow":{"type":"value","value":"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"},"title":{"type":"value","value":"YouTube video player"},"width":{"type":"value","value":"560"},"height":{"type":"value","value":"315"},"frameborder":{"type":"value","value":"0"},"referrerpolicy":{"type":"value","value":"strict-origin-when-cross-origin"},"allowfullscreen":{"type":"value","value":""}},"customProperties":{}},"2D670NpJUR9g3bLjFmOOd":{"type":"text","value":{"type":"value","value":"The toaster component emits toasts 🍞🔥 You generally want a single toaster at the root of your application. Toasts are emitted by the context provided by the toaster."}},"2Rsogwahor3UcHth1w5CO":{"tag":"h5","type":"element","children":["HPcm5LExVPwi8s1jIsWcO"],"classes":{"dFkhIH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2aZMiZL6Y4aD505YRcTD9":{"tag":"td","type":"element","children":["duTrIH0LDS6k12yytnrhW"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2uWuH8uuBuyHDnDuEAnm1":{"tag":"h3","type":"element","children":["U-EwpC1sDKuyo64lHUPD1"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"3Ef_qS8U8w-DHOeFm0Zxu":{"tag":"table","type":"element","children":["55H4S5hMensAWquZAexGW","DkTJB7HnvNhAAyZdU1Gsv","sPbzYesqneuSF22AAaQvS"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4HePO8jbx9n2xfyvKN26x":{"tag":"h5","type":"element","children":["kc8_19I0BU0vXvomfVEjD"],"classes":{"dzkHOD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"55H4S5hMensAWquZAexGW":{"tag":"tr","type":"element","children":["ZiR_7NBEo3Rxbs6tcR6f8","h252OSvFi-TGVXb5FfqlM"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"6YP11YBwXyZSxsd1ot4dp":{"type":"text","value":{"type":"value","value":"Toast.success"}},"7N6p3i7L0_1k935v8vzeX":{"tag":"h5","type":"element","children":["qhim2VYUrbv0ARz85rL1C","dMar7VG-WRUWm5Mc592ml"],"classes":{"dzkHOD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"7OOWbchYKoRyOu2N_ptKx":{"type":"text","value":{"type":"value","value":"Update toast"}},"8639CdlBFc-BRBvcDO5av":{"tag":"div","type":"element","children":["MWUFMDwmr1jbNvTHq_pFf"],"customProperties":{}},"8TNBSPnRHvP_Uq_JElFlL":{"type":"text","value":{"type":"value","value":"Update a toast based on its key"}},"9iQDLd4bU34UOCt0lFq2b":{"tag":"tr","type":"element","children":["iNxNdwpFltLXPA6Amjjj3","wHk-OGbHljnyemKDHR4Ar"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9qCkyLIHcNTZFST15B_aP":{"tag":"td","type":"element","children":["r25K3mMSePPVqRoaBdYXg"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9zVJA4s0L8vZAl4XjCjaO":{"type":"text","value":{"type":"value","value":"Offset"}},"A2Mc_yMPaNM537znK2CIu":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/ui_toast:element-catalog-add-toaster(1).png/public"}},"classes":{"fhBKOA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"A8GbPjaAXZEgWfRKJGTBS":{"type":"text","value":{"type":"value","value":"Attributes"}},"BVWa73NugHjWAgHivNn_z":{"tag":"div","type":"element","children":["DvCVE-lzT1mIZkVJ9TphH","eBZZAnFgiqt9st5oBCtC-","vkdcrVColw16W26xlkA1N","umzdWAefPMP2pYg8s9MXU"],"classes":{"cIXGJa":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BgzQpOs9RXd6m-4p8cEDn":{"tag":"div","type":"element","children":["ZyP-08fSBsz-vPIcG1t-P","2Rsogwahor3UcHth1w5CO","GDU-6InSAnZi2IjIuKKFG","QDWLywWtiPjuwRZxbNBZ6","qPXP-ajGfJqSJwSCWye-8","8639CdlBFc-BRBvcDO5av","7N6p3i7L0_1k935v8vzeX","RAdVF-FmCXbIiSl_mBa0T","4HePO8jbx9n2xfyvKN26x","ugWxlMd24-69rvHAPtEtE","LPlS3W56ZlSH-DPx8ji7w"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"DO0jYOWcRenYJndif0r2_":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/ui_toast:CleanShot2024-07-01at14.16.39.gif/public"}},"classes":{"uqTyS":{"formula":{"type":"value","value":true}}},"customProperties":{}},"DkTJB7HnvNhAAyZdU1Gsv":{"tag":"tr","type":"element","children":["rYkmHgL_dXmWQZNADlSOF","iuLQoLUWFQjLeK78JPWoR"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"DvCVE-lzT1mIZkVJ9TphH":{"tag":"label","type":"element","attrs":{"title":{"type":"value","value":"Absolute"}},"children":["ggpPOS4xElEtpOSUSNYvP","k2GxXNAZKbV0ollhKPt42"],"classes":{"cTxkJr":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ElreylPEJhPRPjJl4ECC8":{"tag":"div","type":"element","children":["bwjOdlDjp2K1ezmP7sV84","3Ef_qS8U8w-DHOeFm0Zxu"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"GDU-6InSAnZi2IjIuKKFG":{"tag":"div","type":"element","children":["A2Mc_yMPaNM537znK2CIu"],"customProperties":{}},"HPcm5LExVPwi8s1jIsWcO":{"type":"text","value":{"type":"value","value":"Step 1: Install the package. then add the toaster component towards the root of your app (usually on a page)\n"}},"Ip-xzTSOMG_1pK5b7jQLP":{"type":"text","value":{"type":"value","value":"absolute"}},"IzwNtu1VBBzJe1gTYUuGF":{"tag":"input","type":"element","attrs":{"type":{"type":"value","value":"text"},"title":{"type":"value","value":"Set position"},"value":{"path":["Variables","position"],"type":"path"},"autofocus":{"type":"value","value":false},"placeholder":{"type":"value","value":"top-center"}},"events":{"input":{"actions":[{"data":{"path":["Event","target","value"],"type":"path"},"type":"SetVariable","variable":"position"}],"trigger":"input"}},"classes":{"fbRgew":{"formula":{"type":"value","value":true}}},"customProperties":{}},"LPlS3W56ZlSH-DPx8ji7w":{"tag":"div","type":"element","children":["DO0jYOWcRenYJndif0r2_"],"customProperties":{}},"MWUFMDwmr1jbNvTHq_pFf":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/ui_toast:CleanShot2024-07-01at14.04.132x.png/public"}},"classes":{"fEOTNA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"NAWeeRXTZvccM1cDioZJL":{"tag":"td","type":"element","children":["zWpsS2vDPMUgcJtVcyyUN"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"NaVy9y3Ishluj6aW6zGoS":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/ui_toast:CleanShot2024-07-01at13.59.042x.png/public"}},"classes":{"bVJTQB":{"formula":{"type":"value","value":true}}},"customProperties":{}},"OmIm-0ZrtX1ZT0tQzPsaF":{"tag":"td","type":"element","children":["6YP11YBwXyZSxsd1ot4dp"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"PAaGiRKGzxf11kLbG0UJP":{"tag":"td","type":"element","children":["Tqae3Puo5tcpgNU19S5aP"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"QDWLywWtiPjuwRZxbNBZ6":{"tag":"div","type":"element","children":["NaVy9y3Ishluj6aW6zGoS"],"customProperties":{}},"RAdVF-FmCXbIiSl_mBa0T":{"tag":"div","type":"element","children":["ve6Pe7UaEY4WctV0tYXfL"],"customProperties":{}},"RUQzIwEJHUQ8C76qdXWsX":{"tag":"input","type":"element","attrs":{"type":{"type":"value","value":"number"},"title":{"type":"value","value":"Set offset"},"value":{"path":["Variables","offset"],"type":"path"},"autofocus":{"type":"value","value":false},"placeholder":{"type":"value","value":"16px"}},"events":{"input":{"actions":[{"data":{"path":["Event","target","value"],"type":"path"},"type":"SetVariable","variable":"offset"}],"trigger":"input"}},"classes":{"fbRgew":{"formula":{"type":"value","value":true}}},"customProperties":{}},"S9rTcsapiIBEew_5WjZxO":{"type":"text","value":{"type":"value","value":"Context workflows"}},"SGCh9t4FAWik28BgjNiOW":{"type":"text","value":{"type":"value","value":"Position"}},"Tqae3Puo5tcpgNU19S5aP":{"type":"text","value":{"type":"value","value":"Dismiss toast"}},"U-EwpC1sDKuyo64lHUPD1":{"type":"text","value":{"type":"value","value":"🍞 Toaster"}},"VHjbZbJDA_ss7CZIF49JD":{"tag":"p","type":"element","children":["2D670NpJUR9g3bLjFmOOd"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"VtgAme6oWSyy4ElJXSA0t":{"type":"text","value":{"type":"value","value":"Beautiful feedback to events with ease\n"}},"W61r5Dp974Z8yoDJzZLYx":{"tag":"table","type":"element","children":["m1-0d78FI6KK91xfk4QrQ","wt7giDv2UuBwjiwg7cLic","9iQDLd4bU34UOCt0lFq2b","zvOTd8nZHr-VAglyQLIG9"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"XX1DKQW0HvQVblxLbfdRS":{"type":"text","value":{"type":"value","value":"Should the toasts be contained in the toaster or to the screen (leave empty for screenspace)"}},"Y2OR8RiVHruJIut22z7S-":{"type":"text","value":{"type":"value","value":"position"}},"ZiR_7NBEo3Rxbs6tcR6f8":{"tag":"td","type":"element","children":["Y2OR8RiVHruJIut22z7S-"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Zixq2aXDAjRkdLILUy4UR":{"name":"toaster","type":"component","attrs":{"offset":{"path":["Variables","offset"],"type":"path","label":null},"absolute":{"path":["Variables","absolute"],"type":"path"},"position":{"path":["Variables","position"],"type":"path"}},"children":["BVWa73NugHjWAgHivNn_z"],"customProperties":{}},"ZyP-08fSBsz-vPIcG1t-P":{"tag":"h4","type":"element","children":["lHLEIuswFkNxVgxLRJwIy"],"classes":{"gPWqh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"_hOickDzMWu_s71JGMqi1":{"tag":"li","type":"element","children":["2uWuH8uuBuyHDnDuEAnm1","VHjbZbJDA_ss7CZIF49JD","w2hs9IAi9COQ84sXhk2Fo","BgzQpOs9RXd6m-4p8cEDn","ElreylPEJhPRPjJl4ECC8","e0EsHZe3XqtU6olOM3Sbj"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"a6dIEOtgtHSp8tOYH2AmJ":{"type":"text","value":{"type":"value","value":"See the example demo project"}},"afUDuBe5Af_JXK00cQpX7":{"tag":"h2","type":"element","children":["VtgAme6oWSyy4ElJXSA0t"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bXvhEmyouZxOpjUOep0QN":{"tag":"td","type":"element","children":["d38YaTmiyky2YNzsvj7SN"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bwjOdlDjp2K1ezmP7sV84":{"tag":"h4","type":"element","children":["A8GbPjaAXZEgWfRKJGTBS"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"c8Kh-k9TC5BdIicpED1yU":{"type":"text","value":{"type":"value","value":"How many pixel to leave to the edge? Default is 16"}},"d38YaTmiyky2YNzsvj7SN":{"type":"text","value":{"type":"value","value":"Trigger a toast to be shown. You can set various options such as a timeout and custom styling. Styling is an object with key value CSS rules."}},"dMar7VG-WRUWm5Mc592ml":{"tag":"p","type":"element","children":["wPPJ8rImGQWb8dlF9E9ui"],"classes":{"bjIDmq":{"formula":{"type":"value","value":true}}},"customProperties":{}},"duTrIH0LDS6k12yytnrhW":{"type":"text","value":{"type":"value","value":"Toast"}},"e0EsHZe3XqtU6olOM3Sbj":{"tag":"div","type":"element","children":["xVNgQ_O_jEsJzWM41nEs0","W61r5Dp974Z8yoDJzZLYx"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"eBZZAnFgiqt9st5oBCtC-":{"tag":"label","type":"element","attrs":{"title":{"type":"value","value":"Position"}},"children":["SGCh9t4FAWik28BgjNiOW","IzwNtu1VBBzJe1gTYUuGF"],"classes":{"cvzyeh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ggpPOS4xElEtpOSUSNYvP":{"tag":"input","type":"element","attrs":{"type":{"type":"value","value":"checkbox"},"title":{"type":"value","value":"Set position"},"value":{"path":["Variables","absolute"],"type":"path"},"autofocus":{"type":"value","value":false},"placeholder":{"type":"value","value":"top-center"}},"events":{"change":{"actions":[{"data":{"type":"switch","cases":[{"formula":{"type":"value","value":"true"},"condition":{"name":"@toddle/get","type":"function","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"path":["Event","currentTarget"],"type":"path"}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"checked"}}],"display_name":"Get"}}],"default":{"type":"value","value":""}},"type":"SetVariable","variable":"absolute"}],"trigger":"change"}},"classes":{"ehwbwh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"h252OSvFi-TGVXb5FfqlM":{"tag":"td","type":"element","children":["hcTzfrYjfJ2oSUy32OrZ8"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hBGt7knphy6oCuduyvgTz":{"tag":"td","type":"element","children":["c8Kh-k9TC5BdIicpED1yU"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hcTzfrYjfJ2oSUy32OrZ8":{"type":"text","value":{"type":"value","value":"combination of vertical position \"top\", \"bottom\" and horizontal \"left\", \"center\", \"right\". Default is \"top center\""}},"iM7fDBTYXpHhJ9V8s2xds":{"type":"text","value":{"type":"value","value":"I'm still improving and adding functionality to this package. Please leave me feedback and requested features on the toddle Discord @jacobkofoed"}},"iNxNdwpFltLXPA6Amjjj3":{"tag":"td","type":"element","children":["7OOWbchYKoRyOu2N_ptKx"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"iuLQoLUWFQjLeK78JPWoR":{"tag":"td","type":"element","children":["XX1DKQW0HvQVblxLbfdRS"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"k2GxXNAZKbV0ollhKPt42":{"type":"text","value":{"type":"value","value":"Absolute"}},"kc8_19I0BU0vXvomfVEjD":{"type":"text","value":{"type":"value","value":"Step 4: Profit"}},"km37Ik4ftsVCx0SFFbK65":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["_hOickDzMWu_s71JGMqi1"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"l26EFv72WY6NmPwQRJ8Id":{"tag":"td","type":"element","children":["lj3xBOlcC8BXH4GdVd2lW"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"lHLEIuswFkNxVgxLRJwIy":{"type":"text","value":{"type":"value","value":"Get started\n"}},"lj3xBOlcC8BXH4GdVd2lW":{"type":"text","value":{"type":"value","value":"Same as `toast`, but with some default settings to show successful feedback"}},"m1-0d78FI6KK91xfk4QrQ":{"tag":"tr","type":"element","children":["2aZMiZL6Y4aD505YRcTD9","bXvhEmyouZxOpjUOep0QN"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qPXP-ajGfJqSJwSCWye-8":{"tag":"h5","type":"element","children":["0ETXpVVtXI5YcDO0keStV"],"classes":{"dFkhIH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qhim2VYUrbv0ARz85rL1C":{"type":"text","value":{"type":"value","value":"Step 3: Call the workflow in your component(s) to show toasts"}},"qzYKg4prLrIBYwSvkrjuM":{"tag":"section","type":"element","children":["afUDuBe5Af_JXK00cQpX7","1vehdn7e2hLgacK2n1pt_","km37Ik4ftsVCx0SFFbK65"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"r25K3mMSePPVqRoaBdYXg":{"type":"text","value":{"type":"value","value":"offset"}},"rYkmHgL_dXmWQZNADlSOF":{"tag":"td","type":"element","children":["Ip-xzTSOMG_1pK5b7jQLP"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sPbzYesqneuSF22AAaQvS":{"tag":"tr","type":"element","children":["9qCkyLIHcNTZFST15B_aP","hBGt7knphy6oCuduyvgTz"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ugWxlMd24-69rvHAPtEtE":{"tag":"a","type":"element","attrs":{"href":{"type":"value","value":"https://toddle.dev/projects/jacob_test/branches/install-ui-toast/components/my-component?mode=design&leftpanel=design&rightpanel=events&canvas-width=810&canvas-height=800&selection=nodes.ehUt1ytnPZyg9srLIsOQs.events.click"},"target":{"type":"value","value":"_blank"}},"children":["a6dIEOtgtHSp8tOYH2AmJ"],"classes":{"bSmPCB":{"formula":{"type":"value","value":true}}},"customProperties":{}},"umzdWAefPMP2pYg8s9MXU":{"name":"ui_toast-examples","type":"component","customProperties":{}},"ve6Pe7UaEY4WctV0tYXfL":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/ui_toast:CleanShot2024-07-01at14.12.462x.png/public"}},"classes":{"bXcaBP":{"formula":{"type":"value","value":true}}},"customProperties":{}},"vkdcrVColw16W26xlkA1N":{"tag":"label","type":"element","attrs":{"title":{"type":"value","value":"Offset"}},"children":["9zVJA4s0L8vZAl4XjCjaO","RUQzIwEJHUQ8C76qdXWsX"],"classes":{"cvzyeh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"w2hs9IAi9COQ84sXhk2Fo":{"tag":"div","type":"element","children":["Zixq2aXDAjRkdLILUy4UR"],"classes":{"eybmGA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"wHk-OGbHljnyemKDHR4Ar":{"tag":"td","type":"element","children":["8TNBSPnRHvP_Uq_JElFlL"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"wPPJ8rImGQWb8dlF9E9ui":{"type":"text","value":{"type":"value","value":"Notice: Testing from the editor within the component may not work, as it requires the Toaster to component. Test either in preview or from the parent component that holds the Toaster."}},"wt7giDv2UuBwjiwg7cLic":{"tag":"tr","type":"element","children":["OmIm-0ZrtX1ZT0tQzPsaF","l26EFv72WY6NmPwQRJ8Id"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"xVNgQ_O_jEsJzWM41nEs0":{"tag":"h4","type":"element","children":["S9rTcsapiIBEew_5WjZxO"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zWpsS2vDPMUgcJtVcyyUN":{"type":"text","value":{"type":"value","value":"Dismiss a toast based on its key"}},"zvOTd8nZHr-VAglyQLIG9":{"tag":"tr","type":"element","children":["PAaGiRKGzxf11kLbG0UJP","NAWeeRXTZvccM1cDioZJL"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"route":{"path":[],"query":{}},"onLoad":{"actions":[],"trigger":"load"},"functions":{},"variables":{"offset":{"initialValue":{"type":"value","value":""}},"absolute":{"initialValue":{"type":"value","value":""}},"position":{"initialValue":{"type":"value","value":""}}}},"components":[{"name":"toaster","nodes":{"root":{"tag":"toaster","type":"element","children":["wK1mH5tzF8rVX8yH-iWh_","2VGjcalcG4kVg59S7vZda","7f1iZJoV29V1S-Umb9MCt"],"classes":{"cirgpo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2VGjcalcG4kVg59S7vZda":{"tag":"div","type":"element","classes":{"bottom":{"formula":{"name":"@toddle/includes","type":"function","arguments":[{"name":"Array","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"}]},"formula":{"path":["Attributes","position"],"type":"path"}},{"name":"Item","type":{"type":"Any"},"formula":{"type":"value","value":"bottom"}}],"display_name":"Includes"}},"fzvQal":{"formula":{"type":"value","value":true}}},"children":["ZXi3JRaxWBkb8yDUQ3fCt"],"style-variables":[{"name":"position","unit":"","formula":{"type":"switch","cases":[{"formula":{"type":"value","value":"fixed"},"condition":{"type":"or","arguments":[{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","absolute"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}},{"formula":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"path":["Attributes","absolute"],"type":"path"}}],"display_name":"Not"}}]}}],"default":{"type":"value","value":"absolute"}},"category":"spacing"},{"name":"offset","unit":"px","formula":{"type":"switch","cases":[{"formula":{"type":"value","value":"16"},"condition":{"type":"or","arguments":[{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","offset"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}},{"formula":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"path":["Attributes","offset"],"type":"path"}}],"display_name":"Not"}}]}}],"default":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"path":["Attributes","offset"],"type":"path"}}],"display_name":"Number"}},"category":"spacing"}],"customProperties":{}},"7f1iZJoV29V1S-Umb9MCt":{"tag":"style","type":"element","children":["Vz9gQemQVQZn5esrVzUiV"],"customProperties":{}},"Vz9gQemQVQZn5esrVzUiV":{"type":"text","value":{"type":"value","value":"@keyframes fadeInUp {\n    from {\n        opacity: 0;\n        transform: translateY(20px);\n        max-height: 0;\n        padding-bottom: 0px;\n    }\n    to {\n        opacity: 1;\n        transform: translateY(0);\n        max-height: 48px;\n        padding-bottom: 12px;\n    }\n}\n\n@keyframes fadeOutUp {\n    from {\n        opacity: 1;\n        transform: translateY(0);\n        max-height: 48px;\n        padding-bottom: 12px;\n    }\n    to {\n        opacity: 0;\n        transform: translateY(-20px);\n        max-height: 0;\n        padding-bottom: 0px;\n    }\n}\n\n@keyframes fadeInDown {\n    from {\n        opacity: 0;\n        transform: translateY(-20px);\n        max-height: 0;\n        padding-top: 0px;\n    }\n    to {\n        opacity: 1;\n        transform: translateY(0);\n        max-height: 48px;\n        padding-top: 12px;\n    }\n}\n\n@keyframes fadeOutDown {\n    from {\n        opacity: 1;\n        transform: translateY(0);\n        max-height: 48px;\n        padding-top: 12px;\n    }\n    to {\n        opacity: 0;\n        transform: translateY(20px);\n        max-height: 0;\n        padding-top: 0px;\n    }\n}"},"events":null},"ZXi3JRaxWBkb8yDUQ3fCt":{"id":"ZXi3JRaxWBkb8yDUQ3fCt","name":"ui_toast-toast","type":"component","attrs":{"id":{"path":["ListItem","Item","id"],"type":"path","label":null},"icon":{"path":["ListItem","Item","icon"],"type":"path","label":null},"text":{"path":["ListItem","Item","text"],"type":"path","label":null},"style":{"path":["ListItem","Item","style"],"type":"path","label":null},"loading":{"path":["ListItem","Item","loading"],"type":"path","label":null},"position":{"path":["Attributes","position"],"type":"path","label":null},"disposing":{"name":"@toddle/get","type":"function","label":null,"arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"path":["ListItem","Item"],"type":"path","label":null}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"disposing"}}],"display_name":"Get"}},"repeat":{"path":["Variables","toasts"],"type":"path"},"repeatKey":{"path":["ListItem","Item","id"],"type":"path"},"customProperties":{}},"wK1mH5tzF8rVX8yH-iWh_":{"type":"slot"}},"version":2,"exported":true,"variables":{"toasts":{"initialValue":{"type":"value","value":[]}}},"workflows":{"8DifKQ":{"name":"Toast with default id","actions":[{"data":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"Item","type":{"type":"Any"},"formula":{"path":["Variables","toasts"],"type":"path"}},{"name":"Item","type":{"type":"Any"},"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"id","formula":{"path":["Parameters","id"],"type":"path"}},{"Name":0,"name":"text","formula":{"path":["Parameters","text"],"type":"path"}},{"Name":0,"name":"icon","formula":{"path":["Parameters","icon"],"type":"path"}},{"Name":0,"name":"loading","formula":{"path":["Parameters","loading"],"type":"path"}},{"Name":0,"name":"style","formula":{"path":["Parameters","style"],"type":"path"}}]}}]}}],"display_name":"Concatenate","variableArguments":true},"type":"SetVariable","variable":"toasts"},{"name":"@toddle/sleep","events":{"tick":{"actions":[{"type":"TriggerWorkflow","workflow":"jAAVRx","parameters":{"id":{"formula":{"path":["Parameters","id"],"type":"path","label":null}},"immediately":{"formula":{"type":"value","label":null,"value":false}}}}],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"name":"@toddle/defaultTo","type":"function","arguments":[{"name":"0","type":{"type":"Any"},"formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"path":["Parameters","duration"],"type":"path"}}],"display_name":"Number"}},{"name":"1","type":{"type":"Any"},"formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"4000"}}],"display_name":"Number"}}],"display_name":"Default to","variableArguments":true}}]}],"parameters":[{"name":"duration"},{"name":"style"},{"name":"icon"},{"name":"id"},{"name":"text"},{"name":"loading"}],"exposeInContext":false},"8eG5Hg":{"name":"Toast","actions":[{"type":"TriggerWorkflow","workflow":"8DifKQ","parameters":{"id":{"formula":{"type":"switch","cases":[{"formula":{"path":["Parameters","id"],"type":"path"},"condition":{"type":"and","arguments":[{"formula":{"path":["Parameters","id"],"type":"path"}},{"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Parameters","id"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Not equal"}}]}}],"default":{"name":"@toddle/takeLast","type":"function","arguments":[{"name":"Array","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"}]},"formula":{"name":"@toddle/string","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"name":"@toddle/randomNumber","type":"function","arguments":[],"display_name":"Random number"}}],"display_name":"String"}},{"name":"Count","type":{"type":"Number"},"formula":{"type":"value","value":6}}],"display_name":"Take last"}}},"icon":{"formula":{"path":["Parameters","icon"],"type":"path"}},"text":{"formula":{"path":["Parameters","text"],"type":"path"}},"style":{"formula":{"path":["Parameters","style"],"type":"path"}},"loading":{"formula":{"path":["Parameters","loading"],"type":"path"}},"duration":{"formula":{"name":"@toddle/defaultTo","type":"function","arguments":[{"name":"0","type":{"type":"Any"},"formula":{"path":["Parameters","duration"],"type":"path"}},{"name":"1","type":{"type":"Any"},"formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"4000"}}],"display_name":"Number"}}],"display_name":"Default to","variableArguments":true}}}}],"parameters":[{"name":"duration"},{"name":"style"},{"name":"icon"},{"name":"id"},{"name":"text"},{"name":"loading"}],"exposeInContext":true},"PRGZ1J":{"name":"Update Toast","actions":[{"data":{"name":"@toddle/map","type":"function","arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"path":["Variables","toasts"],"type":"path"}},{"name":"Formula","type":{"type":"Formula"},"formula":{"type":"switch","cases":[{"formula":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"path":["Args","item"],"type":"path"}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"object","arguments":[{"Name":0,"name":"text","formula":{"name":"@toddle/defaultTo","type":"function","arguments":[{"name":"0","type":{"type":"Any"},"formula":{"path":["Parameters","text"],"type":"path"}},{"name":"1","type":{"type":"Any"},"formula":{"path":["Args","item","text"],"type":"path"}}],"display_name":"Default to","variableArguments":true}},{"Name":0,"name":"icon","formula":{"name":"@toddle/defaultTo","type":"function","arguments":[{"name":"0","type":{"type":"Any"},"formula":{"path":["Parameters","icon"],"type":"path"}},{"name":"1","type":{"type":"Any"},"formula":{"path":["Args","item","icon"],"type":"path"}}],"display_name":"Default to","variableArguments":true}},{"Name":0,"name":"loading","formula":{"type":"switch","cases":[{"formula":{"path":["Parameters","loading"],"type":"path"},"condition":{"type":"or","arguments":[{"formula":{"path":["Parameters","loading"],"type":"path"}},{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Parameters","loading"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":false}}],"display_name":"Equals"}}]}}],"default":{"path":["Args","item","loading"],"type":"path"}}}]}}],"display_name":"Concatenate","variableArguments":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Args","item","id"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"path":["Parameters","id"],"type":"path"}}],"display_name":"Equals"}}],"default":{"path":["Args","item"],"type":"path"}},"isFunction":true}],"display_name":"Map"},"type":"SetVariable","variable":"toasts"}],"parameters":[{"name":"id"},{"name":"loading"},{"name":"text"},{"name":"icon"}],"exposeInContext":true},"g05G1v":{"name":"Toast.success","actions":[{"type":"TriggerWorkflow","workflow":"8eG5Hg","parameters":{"id":{"formula":null},"icon":{"formula":null},"text":{"formula":null},"style":{"formula":{"type":"object","label":null,"arguments":[{"Name":0,"name":"background-color","formula":{"type":"value","value":"var(--toast-background-color--success, #115E59)"}}]}},"loading":{"formula":null},"duration":{"formula":{"name":"@toddle/number","type":"function","label":null,"arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"2000"}}],"display_name":"Number"}}}}],"parameters":[{"name":"text"}],"exposeInContext":true},"jAAVRx":{"name":"Dismiss Toast","actions":[{"type":"Switch","cases":[{"actions":[{"data":{"name":"@toddle/filter","type":"function","arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"path":["Variables","toasts"],"type":"path"}},{"name":"Formula","type":{"type":"Formula"},"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Args","item","id"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"path":["Parameters","id"],"type":"path"}}],"display_name":"Not equal"},"isFunction":true}],"display_name":"Filter"},"type":"SetVariable","variable":"toasts"}],"condition":{"type":"and","label":"Immediately","arguments":[{"formula":{"path":["Parameters","immediately"],"type":"path"}},{"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Parameters","immediately"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Not equal"}}]}}],"default":{"actions":[{"data":{"name":"@toddle/map","type":"function","arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"path":["Variables","toasts"],"type":"path"}},{"name":"Formula","type":{"type":"Formula"},"formula":{"type":"switch","cases":[{"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Args","item"],"type":"path"}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array"},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"disposing"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":true}}],"display_name":"Set"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Args","item","id"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"path":["Parameters","id"],"type":"path"}}],"display_name":"Equals"}}],"default":{"path":["Args","item"],"type":"path"}},"isFunction":true}],"display_name":"Map"},"type":"SetVariable","variable":"toasts"},{"name":"@toddle/sleep","events":{"tick":{"actions":[{"type":"TriggerWorkflow","workflow":"jAAVRx","parameters":{"id":{"formula":{"path":["Parameters","id"],"type":"path","label":null}},"immediately":{"formula":{"type":"value","label":null,"value":true}}}},{"type":"TriggerWorkflow","workflow":"jAAVRx","parameters":{"toastId":{"formula":{"path":["Parameters","toastId"],"type":"path","label":null}},"immediately":{"formula":{"type":"value","label":null,"value":true}}}}],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":500}}]}]}}],"parameters":[{"name":"id"},{"name":"immediately"}],"exposeInContext":true}},"attributes":{"offset":{"name":"offset"},"absolute":{"name":"absolute"},"position":{"name":"position"}}},{"name":"ui_toast-toast","nodes":{"root":{"tag":"ui_toast-toast","type":"element","classes":{"left":{"formula":{"name":"@toddle/includes","type":"function","arguments":[{"name":"Array","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"}]},"formula":{"path":["Attributes","position"],"type":"path"}},{"name":"Item","type":{"type":"Any"},"formula":{"type":"value","value":"left"}}],"display_name":"Includes"}},"right":{"formula":{"name":"@toddle/includes","type":"function","arguments":[{"name":"Array","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"}]},"formula":{"path":["Attributes","position"],"type":"path"}},{"name":"Item","type":{"type":"Any"},"formula":{"type":"value","value":"right"}}],"display_name":"Includes"}},"bottom":{"formula":{"name":"@toddle/includes","type":"function","arguments":[{"name":"Array","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"}]},"formula":{"path":["Attributes","position"],"type":"path"}},{"name":"Item","type":{"type":"Any"},"formula":{"type":"value","value":"bottom"}}],"display_name":"Includes"}},"disposing":{"formula":{"type":"and","arguments":[{"formula":{"path":["Attributes","disposing"],"type":"path"}},{"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","disposing"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Not equal"}}]}},"disposing-bottom":{"formula":{"type":"and","arguments":[{"formula":{"path":["Attributes","disposing"],"type":"path"}},{"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","disposing"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Not equal"}},{"formula":{"name":"@toddle/includes","type":"function","arguments":[{"name":"Array","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"}]},"formula":{"path":["Attributes","position"],"type":"path"}},{"name":"Item","type":{"type":"Any"},"formula":{"type":"value","value":"bottom"}}],"display_name":"Includes"}}]}},"ezcecC":{"formula":{"type":"value","value":true}}},"children":["N2ep4VLcfQ4hYAi9VY285"],"customProperties":{}},"EVBivT4wLvHwWbetL96CK":{"name":"ui_toast-spinner","type":"component","customProperties":{}},"IhEeRIaVaZGj5dh7aWQv1":{"tag":"div","type":"element","children":["EVBivT4wLvHwWbetL96CK"],"classes":{"bRKGYi":{"formula":{"type":"value","value":true}}},"customProperties":{}},"N2ep4VLcfQ4hYAi9VY285":{"tag":"div","type":"element","attrs":{"style":{"name":"@toddle/join","type":"function","arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"name":"@toddle/map","type":"function","arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"name":"@toddle/entries","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Attributes","style"],"type":"path"}}],"display_name":"Entries"}},{"name":"Formula","type":{"type":"Formula"},"formula":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"path":["Args","item","key"],"type":"path"}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":": "}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"path":["Args","item","value"],"type":"path"}}],"display_name":"Concatenate","variableArguments":true},"isFunction":true}],"display_name":"Map"}},{"name":"Separator","type":{"type":"String"},"formula":{"type":"value","value":";"}}],"display_name":"Join"}},"events":{"click":{"actions":[{"type":"TriggerWorkflow","workflow":"jAAVRx","parameters":{"id":{"formula":{"path":["Attributes","id"],"type":"path","label":null}},"immediately":{"formula":null}},"contextProvider":"toaster"}],"trigger":"click"}},"children":["TD2AcDiOCbRq-WtmlSKma","iteR7Subld_qmVLenaWNk","rx2Y54gcHL_rSuhFGblhL"],"classes":{"byOYIn":{"formula":{"type":"value","value":true}}},"customProperties":{}},"TD2AcDiOCbRq-WtmlSKma":{"id":"TD2AcDiOCbRq-WtmlSKma","name":"loading-indicator","type":"slot","children":["IhEeRIaVaZGj5dh7aWQv1"],"condition":{"type":"and","label":null,"arguments":[{"formula":{"path":["Attributes","loading"],"type":"path","label":null}},{"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","loading"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Not equal"}}]}},"iteR7Subld_qmVLenaWNk":{"id":"iteR7Subld_qmVLenaWNk","type":"text","value":{"path":["Attributes","icon"],"type":"path"},"condition":{"type":"and","label":null,"arguments":[{"formula":{"path":["Attributes","icon"],"type":"path","label":null}},{"formula":{"type":"or","arguments":[{"formula":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"path":["Attributes","loading"],"type":"path"}}],"display_name":"Not"}},{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","loading"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}]}}]}},"rx2Y54gcHL_rSuhFGblhL":{"type":"text","value":{"path":["Attributes","text"],"type":"path"}}},"contexts":{"toaster":{"formulas":[],"workflows":["jAAVRx"],"componentName":"toaster"}},"attributes":{"id":{"name":"id"},"icon":{"name":"icon"},"text":{"name":"text"},"style":{"name":"style"},"loading":{"name":"loading"},"position":{"name":"position"},"disposing":{"name":"disposing"}}},{"name":"ui_toast-spinner","nodes":{"root":{"tag":"ui_toast-spinner","type":"element","children":["BrV5T1UzHBH6KfS_oVgHH"],"classes":{"dPrdBe":{"formula":{"type":"value","value":true}}},"customProperties":{}},"0QWVuPof6OxuQep5Ic2Zk":{"tag":"g","type":"element","children":["iccc3FCKxsFsbupJ_t-sv"],"customProperties":{}},"BrV5T1UzHBH6KfS_oVgHH":{"tag":"svg","type":"element","attrs":{"width":{"type":"value","value":"24"},"xmlns":{"type":"value","value":"http://www.w3.org/2000/svg"},"height":{"type":"value","value":"24"},"stroke":{"type":"value","value":"currentColor"},"viewBox":{"type":"value","value":"0 0 24 24"}},"children":["ZM3LBCFeGAKCh7onXf3Tj","0QWVuPof6OxuQep5Ic2Zk"],"classes":{"vLhhu":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ZM3LBCFeGAKCh7onXf3Tj":{"tag":"style","type":"element","children":["j0CTaw3oxQ0yrXFTlDe_z"],"customProperties":{}},"iccc3FCKxsFsbupJ_t-sv":{"tag":"circle","type":"element","attrs":{"r":{"type":"value","value":"9.5"},"cx":{"type":"value","value":"12"},"cy":{"type":"value","value":"12"},"fill":{"type":"value","value":"none"},"stroke-width":{"type":"value","value":"3"}},"customProperties":{}},"j0CTaw3oxQ0yrXFTlDe_z":{"type":"text","value":{"type":"value","value":"ui_toast-spinner>svg{transform-origin:center;animation:spinner_zKoa 2s linear infinite}ui_toast-spinner>svg circle{stroke-linecap:round;animation:spinner_YpZS 1.5s ease-in-out infinite}@keyframes spinner_zKoa{100%{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,100%{stroke-dasharray:42 150;stroke-dashoffset:-59}}"}}}},{"name":"ui_toast-examples","nodes":{"root":{"tag":"ui_toast-examples","type":"element","children":["XdGRDciUTrygppSqP-gBQ"],"customProperties":{}},"189hoWBAqsvvH3319bZOc":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"button"}},"events":{"click":{"actions":[{"type":"TriggerWorkflow","workflow":"8eG5Hg","parameters":{"id":{"formula":null},"icon":{"formula":{"type":"value","value":"❌"}},"text":{"formula":{"type":"value","value":"Task failed successfully"}},"type":{"formula":{"type":"value","value":"error"}},"style":{"formula":null},"loading":{"formula":null},"duration":{"formula":null}},"contextProvider":"toaster"}],"trigger":"click"}},"children":["s_7hpn62h6pua15ryJvyb"],"classes":{"vnscL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4IxB9oQtGA7eZQPvgFkrR":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"button"}},"events":{"click":{"actions":[{"type":"TriggerWorkflow","workflow":"8eG5Hg","parameters":{"id":{"formula":{"name":"@toddle/takeLast","type":"function","arguments":[{"name":"Array","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"}]},"formula":{"name":"@toddle/string","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"name":"@toddle/randomNumber","type":"function","arguments":[],"display_name":"Random number"}}],"display_name":"String"}},{"name":"Count","type":{"type":"Number"},"formula":{"type":"value","value":6}}],"display_name":"Take last"}},"icon":{"formula":{"type":"value","value":"👏"}},"text":{"formula":{"type":"value","value":"Task done!"}},"type":{"formula":null},"style":{"formula":null},"duration":{"formula":{"name":"@toddle/number","type":"function","label":null,"arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"4000"}}],"display_name":"Number"}}},"contextProvider":"toaster"}],"trigger":"click"}},"children":["U_wM_I0LQfCImyVw-qIcG"],"classes":{"vnscL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8LoSCh0___9jJvY3Uty5Y":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"button"}},"events":{"click":{"actions":[{"type":"TriggerWorkflow","workflow":"ttRalN","parameters":{"id":{"formula":{"name":"@toddle/takeLast","type":"function","label":null,"arguments":[{"name":"Array","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"}]},"formula":{"name":"@toddle/string","type":"function","label":null,"arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"name":"@toddle/randomNumber","type":"function","label":null,"arguments":[],"display_name":"Random number"}}],"display_name":"String"}},{"name":"Count","type":{"type":"Number"},"formula":{"type":"value","value":6}}],"display_name":"Take last"}}}}],"trigger":"click"}},"children":["_2FtlIJm-Lu93uZMeUvQD"],"classes":{"vnscL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"H7twT1x5A9qgxuyZPD9fv":{"tag":"li","type":"element","children":["8LoSCh0___9jJvY3Uty5Y"],"classes":{"csPNrG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"KEo0vEcEkdscQ_93-cGZE":{"tag":"li","type":"element","children":["4IxB9oQtGA7eZQPvgFkrR"],"classes":{"csPNrG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"U_wM_I0LQfCImyVw-qIcG":{"type":"text","value":{"type":"value","value":"Default toast\n"},"events":null},"XdGRDciUTrygppSqP-gBQ":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["KEo0vEcEkdscQ_93-cGZE","H7twT1x5A9qgxuyZPD9fv","Z5AbOvRD1Mcuw8faU0qdB"],"classes":{"bxFDr":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Z5AbOvRD1Mcuw8faU0qdB":{"tag":"li","type":"element","children":["189hoWBAqsvvH3319bZOc"],"classes":{"csPNrG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"_2FtlIJm-Lu93uZMeUvQD":{"type":"text","value":{"type":"value","value":"With spinner"},"events":null},"s_7hpn62h6pua15ryJvyb":{"type":"text","value":{"type":"value","value":"With error"},"events":null}},"contexts":{"toaster":{"formulas":[],"workflows":["8eG5Hg","PRGZ1J","jAAVRx"],"componentName":"toaster"}},"workflows":{"ttRalN":{"name":"Show toast with spinner","actions":[{"type":"TriggerWorkflow","workflow":"8eG5Hg","parameters":{"id":{"formula":{"path":["Parameters","id"],"type":"path","label":null}},"icon":{"formula":null},"text":{"formula":{"type":"value","value":"Awaiting data"}},"type":{"formula":null},"style":{"formula":null},"loading":{"formula":{"type":"value","label":null,"value":true}},"duration":{"formula":{"name":"@toddle/number","type":"function","label":null,"arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"4000"}}],"display_name":"Number"}}},"contextProvider":"toaster"},{"name":"@toddle/sleep","events":{"tick":{"actions":[{"type":"TriggerWorkflow","workflow":"PRGZ1J","parameters":{"id":{"formula":{"path":["Parameters","id"],"type":"path","label":null}},"icon":{"formula":{"type":"value","value":"✔️"}},"text":{"formula":{"type":"value","value":"Task complete"}},"loading":{"formula":{"type":"value","value":false}}},"contextProvider":"toaster"}],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"2000"}}],"display_name":"Number"}}]}],"parameters":[{"name":"id"}],"exposeInContext":false}}}]}